package com.gupao.gupaoeduvippattern.javaBase.a4fanshe.demo3;

/**
 * @author Administrator
 * @date 2020-12-23 23:46
 */
public class UserNew extends Person {

    private String name;

    public String sex;

    public static String address;

    public UserNew(){
        System.out.println("public UserNew");
    }
    UserNew(String name){
        System.out.println("public UserNew(String name)");
        this.name = name;
    }
    private UserNew(String name, String sex){
        System.out.println("private UserNew(String name, String sex)");
        this.name = name;
        this.sex = sex;
    }



    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    //-------------
    private void jump(){
        System.out.println("jump");
    }

    //-----------------
    public static void sayPublic(String msg){
        System.out.println("say:" + msg);
    }

    private void sayPrivate(){

    }

    void sayDefault(){

    }

    protected void sayProtected(){

    }


}
